#include "kdcmenuplugin.h"

#include <KPluginFactory>
#include <KPluginLoader>

#include <kdclib.h>

class KDCMenuPlugin;

#include <KLocale>

K_PLUGIN_FACTORY( KDCMenuPluginFactory, registerPlugin< KDCMenuPlugin >(); )
K_EXPORT_PLUGIN( KDCMenuPluginFactory( "KDCMenuPlugin" ) )

KDCMenuPlugin::KDCMenuPlugin( QObject *parent, const QVariantList &args ) : KDCPluginInterface( parent ), pInfo( KPluginInfo("kdcmenuplugin.desktop", "services") )
{
	Q_UNUSED( args );
}

KDCMenuPlugin::~KDCMenuPlugin()
{
	unload();
}

QString KDCMenuPlugin::interfaceName() const
{
	return "KDCMenuPlugin";
}

const KPluginInfo& KDCMenuPlugin::info() const
{
	return pInfo;
}

QWidget* KDCMenuPlugin::widget() const
{
	return new QWidget;
}

KDCConfigPageInterface* KDCMenuPlugin::configPage() const
{
	return NULL;
}

KDC::Position KDCMenuPlugin::tabPosition() const
{
	return KDC::Center;
}

bool KDCMenuPlugin::load()
{
	return true;
}

bool KDCMenuPlugin::unload()
{
	return true;
}

bool KDCMenuPlugin::setInterfaces( QList<KDCBaseInterface*>& aInterfaces )
{
	Q_UNUSED( aInterfaces );
	return true;
}

bool KDCMenuPlugin::init()
{
	setObject( NULL );
	return true;
}

void KDCMenuPlugin::setObject( KDCObject *aObject )
{
	Q_UNUSED( aObject );
}

void KDCMenuPlugin::refresh()
{
	
}

KDCObject* KDCMenuPlugin::currentObject() const
{
	return NULL;
}

#include "kdcmenuplugin.moc"
